package com.kaili.basic.mapper;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.kaili.common.entity.BaseEmployee;
import com.kaili.common.entity.BaseRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BaseRoleMapper {

    List<BaseRole> baseRoles(Pagination page, BaseRole baseRole);

    List<BaseRole> allBaseRoles(BaseRole baseRole);

    List<BaseRole> baseRolesExit(BaseRole baseRole);

    List<BaseRole> queryBaseRoleListByUid(Integer uid);

    int addNewBaseRole(BaseRole baseRole);

    int updateBaseRole(BaseRole baseRole);

    int deleteBaseRoleById(Long rid);

    int deleteBaseRoleByRoleId(Long rid);

    int deleteBaseRoleMenuByRoleId(Long rid);

    String getAutoCode();

}
